package com.buyingtickets.entity;

import java.util.Date;

/**
 * @author Hexz
 * @date 2021/6/23 23:10
 */
public class Order {
    private int orderId;//订单ID
    private User user;//用户对象：订单创建者
    private TrainNumber trainNumber;//车次对象
    private String departureDate;//出发日期：年月日
    private String departureTime;//出发时间：时分秒
    private Site startingStation;//站点对象：出发站
    private Site terminalStation;//站点对象：终点站
    private int price;//总金额
    private Type orderStatus;//类型对象：订单状态
    private String paidTime;//支付时间
    private String createdTime;//创建时间

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", user=" + user +
                ", trainNumber=" + trainNumber +
                ", departureDate=" + departureDate +
                ", departureTime=" + departureTime +
                ", startingStation=" + startingStation +
                ", terminalStation=" + terminalStation +
                ", price=" + price +
                ", orderStatus=" + orderStatus +
                ", paidTime=" + paidTime +
                ", createdTime=" + createdTime +
                '}';
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public TrainNumber getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(TrainNumber trainNumber) {
        this.trainNumber = trainNumber;
    }

    public String getDepartureDate() {
        return departureDate;
    }

    public void setDepartureDate(String departureDate) {
        this.departureDate = departureDate;
    }

    public String getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(String departureTime) {
        this.departureTime = departureTime;
    }

    public Site getStartingStation() {
        return startingStation;
    }

    public void setStartingStation(Site startingStation) {
        this.startingStation = startingStation;
    }

    public Site getTerminalStation() {
        return terminalStation;
    }

    public void setTerminalStation(Site terminalStation) {
        this.terminalStation = terminalStation;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public Type getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Type orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getPaidTime() {
        return paidTime;
    }

    public void setPaidTime(String paidTime) {
        this.paidTime = paidTime;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }
}
